﻿package edzis.translatebuddy.events {
	import flash.events.Event;
	
	public class DataProxyEvent extends Event {
		
		public static const SELECT_SESSION			:String = "select_session";
		public static const TRY_CREATE_SESSION		:String = "try_create_session";
		public static const ADD_WORD				:String = "add_word";
		public static const ADD_TRANSLATION			:String = "add_translation";
		public static const ADD_SEARCH_PROFILE		:String = "ADD_SEARCH_PROFILE";
		
		public static const ON_SESSION_SELECTED		:String = "on_session_selected";
		
		private var _data	:Object;
		
		public function DataProxyEvent(type:String, data:Object = null) {
			super(type, false, false);
			_data = data;
		}
		
		override public function clone():Event {
			return new DataProxyEvent(type, data);
		}
		
		public function get data():Object { return _data; }
		
		public function set data(value:Object):void {
			_data = value;
		}
	}
	
}